package com.five.sbgroup5job.controller;
//钱亚茹21330474011
import com.five.sbgroup5job.entity.sst;
import com.five.sbgroup5job.service.StatisticService;
import com.five.sbgroup5job.vo.StatisticVo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/statistic")

public class StatisticController {
    @Resource
    private StatisticService statisticService;
    //查询
    @RequestMapping ("statisticsList")
    public List<sst> statisticList(){
        return statisticService.statisticlist();
    }
    //添加
    @RequestMapping ("statisticsAdd")
    public String statisticList(@RequestBody StatisticVo statisticVo){
        return statisticService.statisticAdd(statisticVo);
    }
    //更改
    @RequestMapping ("statisticsUpdate")
    public String statisticList1(@RequestBody StatisticVo statisticVo){
        return statisticService.statisticUpdate(statisticVo);
    }
    //删除
    @RequestMapping ("statisticsDelete")
    public String statisticList2(@RequestBody StatisticVo statisticVo){
        return statisticService.statisticDelete(statisticVo);
    }



}
